package org.jcnc.staffingsystem.stage;


import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.*;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;

public class ClassBox extends HBox {

    public ClassBox() {
        TableView tableView=new TableView<>();



        TableColumn classNumber=new TableColumn<>("课程编号");
        TableColumn className=new TableColumn<>("课程名称");
        TableColumn classTeacher=new TableColumn<>("任课教师");
        TableColumn classIntroduction=new TableColumn<>("课程简介");
        TableColumn classBook=new TableColumn<>("所用教材");
        TableColumn classActionTime=new TableColumn<>("开课时间");
        TableColumn classEndTime=new TableColumn<>("结课时间");
        TableColumn classStudentMaxNumber=new TableColumn<>("课程上\n限人数");
        TableColumn classPlace=new TableColumn<>("上课地点");
        TableColumn choice=new TableColumn<>("选课操作");


        tableView.getColumns().addAll(classNumber,className,classTeacher,classIntroduction,classBook,classActionTime,
                classEndTime,classStudentMaxNumber,classPlace,choice);
        tableView.setPrefSize(30000,300000);
        tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);


        this.getChildren().addAll(tableView);
        this.setPadding(new Insets(20));

    }
}
